<template>
	<view class="order_inform">
		<text class="title">订单信息</text>
		<view class=" orderlist">
			<view class="inform">
				<view style="margin: 2px 2px;">订单号：{{orderNo}}</view>
				<view style="margin: 2px 2px;">服务项目：{{project}}</view>
				<view style="margin: 2px 2px;">下单时间：{{orderTime}}</view>
				<view style="margin: 2px 2px;">预约时间：{{bookTime}}</view>
				<view style="margin: 2px 2px;">车辆型号：{{model}}</view>
				<view style="margin: 2px 2px;">备注：</view>
			</view>
		</view>

		<text class="title">订单详情</text>
		<view class="order_details orderlist">
			<view class="detail">
				<view style="margin: 10px; padding-right: 20px;">
					<text>车辆精洗</text>
					<text style="color: #000; float: right;">￥ 199</text>
				</view>
				<view style="margin: 10px; padding-right: 20px;">
					<text>车辆附加费用</text>
					<text style="color: #000; float: right;">￥ 199</text>
				</view>
			</view>
		</view>

		<view class="order_details orderlist">
			<view class="detail">
				<view style="margin:10px; ">
					<text>原价</text>
					<text style="color: #000; float: right;">￥ 100</text>
				</view>
				<view style="margin: 10px;  border-bottom: 1px solid #000;">
					<text>优惠</text>
					<text style="color: red; float: right; ">—￥ 10</text>
				</view>
				<view style="margin: 10px; ">
					<text>支付金额</text>
					<text style="color:  #000; float: right;">￥ 1000</text>
				</view>
			</view>
		</view>
		<view class="evaluation-box">
			<view class="evaluation-time">
				<text>评价时间：{{ evaluationTime }}</text>
			</view>
			<view class="evaluation-stars">
				<text>评价结果：</text>
				<uni-rate :max="6" :value="3." />
			</view>
			<view class="evaluation-comment">
				<text>评语：{{ comment }}</text>
			</view>
		</view>

		<view class="anniu">
			<button size="mini" plain="true">联系客服</button>
			<!-- <button size="mini" class="slider-area_appraise" plain="true">取消订单</button> -->
			<button size="mini" class="slider-area_again">再来一单</button>
		</view>

		
	</view>
</template>

<script>
	export default {

		data() {
			return {
				orderNo: 'f820391272917233',
				project: '车辆保养',
				stores: '大宝维修点',
				orderTime: '2024-03-30 22:18:18',
				bookTime: '2024-03-30 22:18:18',
				model: '奔驰FWE4/豫A98FHJ',
				evaluationTime:'2024-03-30 22:18:18',
				comment:'评语评语评语评语评语评语评语评语评语'
			}
		},
		onLoad(option) {
			console.log(option);
			this.orderNo = option.orderNo

		},
		methods: {

		}
	}
</script>

<style scoped>
	.order_inform {
		background-color: #ffffff;
		padding-bottom: 15px;
		font-weight: 600;
		/* height: 615px; */
	}

	.title {
		display: block;
		padding: 0 10px;
		margin-top: 10px;
		/* background-color: aqua; */
		font-size: 18px;
	}

	.orderlist {
		background-color: white;
		margin: 0 auto;
		width: 95vw;
		/* height: 22vh; */
		margin-top: 20rpx;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		box-shadow: 3rpx 3rpx 3rpx 2rpx rgba(0, 0, 0, 0.2);
	}

	.order_details {
		padding: 10px 0;
		/* height: 80px; */
	}

	.slider-area_appraise {
		border: 1px solid #55aaff;
		margin: 0 20px;

	}

	.slider-area_again {
		background-color: #55aaff;
		color: #fff;
		/* margin: 0 10px; */
	}

	.anniu {
		display: flex;
		font-size: 12px;
		color: #686868;
		margin: 7px 18px 0px 11px;
	}
	
	.evaluation-box {
		padding: 15px;
		border: 1px solid #e5e5e5;
		border-radius: 8px;
		margin-bottom: 10px;
		background-color: #fff;
	}
	
	.evaluation-time {
		font-size: 12px;
		color: #999;
		margin-bottom: 8px;
	}
	
	.evaluation-stars {
		display: flex;
		align-items: center;
	}
	
	.star-icon {
		width: 24px;
		height: 24px;
		margin-right: 4px;
	}
	
	.evaluation-comment {
		font-size: 14px;
		color: #333;
		margin-top: 8px;
	}
</style>